namespace AdminSG3L.Applicaticn.Dtos;

/// <summary>
/// 日志DTO
/// </summary>
public record LogDto(
    Guid Id,
    DateTime Timestamp,
    string Level,
    string Message,
    string? Exception,
    string? Properties,
    string? LogEvent,
    string? Source,
    string? User
);

/// <summary>
/// 日志搜索DTO
/// </summary>
public record LogSearchDto(
    string? Level = null,
    string? Message = null,
    DateTime? StartDate = null,
    DateTime? EndDate = null,
    string? Source = null,
    string? User = null
);

/// <summary>
/// 日志统计DTO
/// </summary>
public record LogStatsDto(
    int ErrorCount,
    int WarningCount,
    int InfoCount,
    int DebugCount,
    int TotalCount
);

/// <summary>
/// 清除日志DTO
/// </summary>
public record ClearLogsDto(
    DateTime? BeforeDate = null,
    string? Level = null,
    bool ClearAll = false
);
